APP      = a
STACK    = 1k
MALLOC   = 0k




TOOLPATH = ../../z_tools/
INCPATH  = ../../z_tools/haribote/
APILIBPATH   = ../include/
HARIBOTEPATH = ../arch/

MAKE     = $(TOOLPATH)make.exe -r
NASK     = $(TOOLPATH)nask.exe
CC1      = $(TOOLPATH)cc1.exe -I$(INCPATH) -I../ -Os -Wall -quiet
GAS2NASK = $(TOOLPATH)gas2nask.exe -a
OBJ2BIM  = $(TOOLPATH)obj2bim.exe
MAKEFONT = $(TOOLPATH)makefont.exe
BIN2OBJ  = $(TOOLPATH)bin2obj.exe
BIM2HRB  = $(TOOLPATH)bim2hrb.exe
RULEFILE = ../os.rul
EDIMG    = $(TOOLPATH)edimg.exe
IMGTOL   = $(TOOLPATH)imgtol.com
GOLIB    = $(TOOLPATH)golib00.exe 
COPY     = copy
DEL      = del



default :
	$(MAKE) hello.hrb
	$(MAKE) hello2.hrb
	$(MAKE) hello4.hrb
	$(MAKE) hello5.hrb



%.gas :%.c $(APILIBPATH)api.h Makefile ../app_make.txt
	$(CC1) -o $*.gas $*.c

%.nas : %.gas Makefile ../app_make.txt
	$(GAS2NASK) $*.gas $*.nas

%.obj : %.nas Makefile ../app_make.txt
	$(NASK) $*.nas $*.obj $*.lst



%.bim : %.obj $(APILIBPATH)apilib.lib Makefile 
	$(OBJ2BIM) @$(RULEFILE) out:$*.bim map:$*.map stack:$(STACK) \
		$*.obj $(APILIBPATH)apilib.lib

%.hrb : %.bim Makefile ../app_make.txt
	$(BIM2HRB) $*.bim $*.hrb $(MALLOC)





cl:

